# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-requests-futures
pkgver=1.0.0
pkgrel=0
pkgdesc="Asynchronous Python HTTP for Humans"
url="https://github.com/ross/requests-futures"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-requests"
makedepends="py3-setuptools"
source="https://pypi.python.org/packages/source/r/requests-futures/requests-futures-$pkgver.tar.gz"
# Network is required for tests
# Some tests will fail until fixed: ttps://github.com/ross/requests-futures/issues/94
options="net !check"
builddir="$srcdir/requests-futures-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="64b39ed99712df8f1be74b2de97500d89711c0d5d3ba0f2b64e3bab755d0bf82029d7ced13b755ce12a2b86f3b673305b651ba6ff4cfb60aed40c8d5876f202c  requests-futures-1.0.0.tar.gz"
